<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s"  uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
    <meta content="text/html; charset=UTF-8" http-equiv="content-type" />
    <title>网站标题</title>
    <meta name="keywords" content="keyword ..." />
    <meta name="Description" content="description ..." />
    <!--<link href="favicon.ico" rel="shortcut icon" />-->
    <link href="css/global.css" rel="stylesheet" type="text/css" />
    <link href="css/list.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="header">
 <jsp:include page="include/header.jsp" />
</div>
<div id="maincontent">
  <div id="topcontent">
    <div class="image">
      <ul>
      <s:iterator value="#application.newGifts" begin="5" end="6">
       <li><a href="giftdetail?giftId=<s:property value="id" />"><img src="<s:property value="pic" />" alt="<s:property value="name" />" title="<s:property value="name" />" /></a></li>
       </s:iterator>
       </ul>
    </div>
    <div id="bannercontent">
    <div id="bannerlist">
     <ul>
      <s:iterator value="#application.newGifts" begin="0" end="4">
       <li><a href="giftdetail?giftId=<s:property value="id" />"><img src="<s:property value="pic" />" alt="" title="<s:property value="profile" />" /></a></li>
     </s:iterator>
     </ul>
    </div>
     <div id="bannermenus">
     <div id="bannertitle"><a href="#">invisable</a></div>
       <ul>
        <s:iterator value="#application.newGifts"  begin="0" end="4" status="st">
         <li tabindex="<s:property value= '#st.index' />"><s:property value= '#st.index+1' /><span class="none"><a href="giftdetail?giftId=<s:property value="id" />"><s:property value="name" /></a></span></li>
       </s:iterator>
       </ul>
     </div>
    </div>
    <div class="image rimage">
      <ul>
       <s:iterator value="#application.newGifts" begin="7" end="8">
       <li><a href="giftdetail?giftId=<s:property value="id" />"><img src="<s:property value="pic" />" alt="<s:property value="name" />" title="<s:property value="name" />" /></a></li>
       </s:iterator>
       </ul>
    </div>
    <div class="clear"></div>
  </div>
  <div id="bottomcontent">
    <div id="exchange">
      <div class="search">
        <h3>搜索微商城所有礼品</h3>
        <ul>
          <li><label>关键词：</label><input type="text" class="text" /></li>
          <li><label>&nbsp;&nbsp;价格：</label><input type="text" class="text short" /><span>到</span><input type="text" class="text short" /></li>
          <li class="btnli"><input type="button" class="searchbtn" value="" /></li>
        </ul>
      </div>
      <h3><a href="#">热门排行</a></h3>
      <div class="body">
        <div class="tabs">
          <ul>
            <li class="current" tabindex="1">热门微商城兑换</li>
            <li tabindex="2">热门微商家兑换</li>
          </ul>
        </div>
        <div class="bodycontent bodycontent1">
          <ul>
           <s:iterator value="#application.gifts">
           <li>
             <div class="img"><a href="giftdetail?giftId=<s:property value="id" />"><img src="<s:property value="pic" />" alt="<s:property value="name" />" title="<s:property value="profile" />" /></a></div>
             <div class="info">
               <h4><a href="giftdetail?giftId=<s:property value="id" />"><s:property value="name" /></a></h4>
               <div class="price">￥<span><s:property value="price" />元</span></div>
               <div class="cart">已售出<label><s:property value="amount" /></label>件</div>
             </div>
             <div class="clear"></div>
           </li>
           </s:iterator>
          </ul>
        </div>
        <div class="bodycontent bodycontent2 none">
          <ul>
           <s:iterator value="#application.shopProducts">
           <li>
             <div class="img"><a href="giftdetail?giftId=<s:property value="id" />"><img src="<s:property value="pic" />" alt="<s:property value="name" />" title="<s:property value="profile" />" /></a></div>
             <div class="info">
               <h4><a href="giftdetail?giftId=<s:property value="id" />"><s:property value="name" /></a></h4>
               <div class="price">￥<span><s:property value="oldPrice" />元</span></div>
               <div class="cart">已售出<label><s:property value="amount" /></label>件</div>
             </div>
             <div class="clear"></div>
           </li>
           </s:iterator>
          </ul>
        </div>
      </div>
    </div>
    <div id="rightcontent">
      <div id="searchcondition">
        <h3>所有礼品</h3>
        <dl>
          <dt>种类：</dt>
          <dd><a href="#" class="hover">全部</a><a href="#">创意</a><a href="#">休闲</a><a href="#">办公</a></dd>
        </dl>
        <dl>
          <dt>分类：</dt>
          <dd><a href="#" class="hover">全部</a><a href="#">笔</a><a href="#">笔记本</a><a href="#">卡片</a>
          <div class="more">更多</div>
          <div class="none"><a href="#">笔</a><a href="#">笔记本</a><a href="#">卡片</a><a href="#">笔</a><a href="#">笔记本</a><a href="#">卡片</a><a href="#">笔</a><a href="#">笔记本</a><a href="#">卡片</a><a href="#">笔</a><a href="#">笔记本</a><a href="#">卡片</a></div>
          </dd>
        </dl>
        <dl>
          <dt>积分：</dt>
          <dd><a href="#" class="hover">全部</a><a href="#">100以下</a><a href="#">100-200</a><a href="#">200-300</a><a href="#">300-400</a><a href="#">400-500</a>
           <div class="more">更多</div>
          <div class="none"><a href="#">笔</a><a href="#">笔记本</a><a href="#">卡片</a><a href="#">笔</a><a href="#">笔记本</a><a href="#">卡片</a><a href="#">笔</a><a href="#">笔记本</a><a href="#">卡片</a><a href="#">笔</a><a href="#">笔记本</a><a href="#">卡片</a></div>
          </dd>
        </dl>
        <div class="num"><label>共搜索到<span><s:property value="pageInfo.amount" /></span>个符合条件的商品。</label>关键词：<input type="text" class="text" />&nbsp;&nbsp;价格：<input type="text" class="text short" />&nbsp;到&nbsp;<input type="text" class="text short" /><input type="button" class="btn" value="搜索" /></div>
      </div>
      <div class="title">
       <div class="r"><s:property value="pageInfo.currentPage" />/<s:property value="pageInfo.pageAmount" />
       <s:if test="pageInfo.currentPage==1">
								<a>
							</s:if>
							<s:else>
								<a
									href="listAllGifts?listType=<s:property value="listType" />&pageInfo.currentPage=<s:property value="pageInfo.currentPage-1" />
									&pageInfo.lineSize=<s:property value="pageInfo.lineSize" />">
							</s:else>上一页</a>
        <s:if test="pageInfo.currentPage>=pageInfo.pageAmount">
								<a>
							</s:if>
							<s:else>
								<a
									href="listAllGifts?listType=<s:property value="listType" />&pageInfo.currentPage=<s:property value="pageInfo.currentPage+1" />
									&pageInfo.lineSize=<s:property value="pageInfo.lineSize" />">
							</s:else>下一页</a></div>
       排序：<a href="listAllGifts?listType=0" class="rank a">热门</a>
       <a href="listAllGifts?listType=1" class="a">积分</a>
       <a href="listAllGifts?listType=2" class="a">新品</a>
       <a href="#" class="a">收藏</a>
      </div>
      <ul class="list">
      <s:iterator value="#request.allGifts">
        <li>
          <a href="giftdetail?giftId=<s:property value="id" />"><img src="<s:property value="pic" />" alt="<s:property value="name" />" title="<s:property value="name" />" /></a>
          <h4><a href="giftdetail?giftId=<s:property value="id" />"><s:property value="name" /></a></h4>
          <div class="point"><span><s:property value="point" /></span>微商城积分</div>
          <div class="num">已兑换<span><s:property value="amount" /></span>件</div>
        </li>
        </s:iterator>
      </ul>
      <form method="get" action="listAllGifts" >
     <div class="page">
      共<font color="#FF0000"> <s:property value="pageInfo.pageAmount" /> </font>页
     &nbsp;
     <font color="#FF0000"><s:property value="pageInfo.amount" /></font>条记录&nbsp;&nbsp;
     <s:if test="pageInfo.currentPage==1">
								<a>
							</s:if>
							<s:else>
								<a
									href="listAllGifts?listType=<s:property value="listType" />&pageInfo.currentPage=<s:property value="pageInfo.currentPage-1" />
									&pageInfo.lineSize=<s:property value="pageInfo.lineSize" />">
							</s:else>上一页</a>
     <s:if test="pageInfo.currentPage>1">
								<a
									href="listAllGifts?listType=<s:property value="listType" />&pageInfo.currentPage=<s:property value="pageInfo.currentPage-1" />&pageInfo.lineSize=<s:property value="pageInfo.lineSize" />">
									<s:property
										value="pageInfo.currentPage-1" /></a></s:if>

							<a class="hover"><s:property value="pageInfo.currentPage" /></a>
							
							<s:if test="pageInfo.currentPage<=pageInfo.pageAmount-1">
								<a
									href="listAllGifts?listType=<s:property value="listType" />&pageInfo.currentPage=<s:property value="pageInfo.currentPage+1" />&pageInfo.lineSize=<s:property value="pageInfo.lineSize" />">
									<s:property
										value="pageInfo.currentPage+1" /></a></s:if>
							<s:if test="pageInfo.currentPage<=pageInfo.pageAmount-2">
								<a
									href="listAllGifts?listType=<s:property value="listType" />&pageInfo.currentPage=<s:property value="pageInfo.currentPage+2" />&pageInfo.lineSize=<s:property value="pageInfo.lineSize" />">
									<s:property
										value="pageInfo.currentPage+2" /></a></s:if>
     <s:if test="pageInfo.currentPage>=pageInfo.pageAmount">
								<a>
							</s:if>
							<s:else>
								<a
									href="listAllGifts?listType=<s:property value="listType" />&pageInfo.currentPage=<s:property value="pageInfo.currentPage+1" />
									&pageInfo.lineSize=<s:property value="pageInfo.lineSize" />">
							</s:else>
							下一页</a>&nbsp;
							到第
							<input name="pageInfo.currentPage" type="text" class="text" />页
							<input type="hidden" name="pageInfo.lineSize" value="<s:property value="pageInfo.lineSize" />" />
							<input type="hidden" name="listType" value="<s:property value="listType" />" />
							<input type="submit" class="btn" value="确认" /></div></form>
    </div>    
    <div class="clear"></div>
  </div>
</div>
<div id="footer">
 <div class="menu"><a href="#">关于微积分</a><span>|</span><a href="#">服务条款</a><span>|</span><a href="#">加盟合作</a><span>|</span><a href="#">广告服务</a><span>|</span><a href="#">客服中心</a><span>|</span><a href="#">意见反馈</a><span>|</span><a href="#">网站导航</a></div>
 <p><span>&copy;</span> 2009-2011 Wjifen.com All Right Reserved 京ICP备09045377号-2</p>
 <p>广州科信德科技发展有限公司 版权所有</p>
</div>
<div id="fullcontent"><div class="fullcontent"></div></div>
<script language="javascript" type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<script language="javascript" type="text/javascript" src="js/default.js"></script>
</body>
</html>
